import { Injectable } from '@angular/core';

@Injectable()
export class EditorService {
    private element: any;
    Register(element: any) {
        this.element = element;
    }
    SetHtmlCode(value: string) {
        this.element.setHtmlCode(value);
    }
    InsertImage(imageUrl:string){
        this.element.insertImage(imageUrl);
    }

    GetHtmlCode(): string {
        return this.element.getHtmlCode();
    }

    UploadImage: (files: File[]) => void;
}